# Author:chensimin

stu_id = [10001, 10002, 10003, 10004, 10005, 10001, 10002]

#1.copy()很重要
# 思考，赋值是真正的复制吗？赋值（=）<=>copy? 不等价
stu_id_matedate = stu_id
print("stu_id:", stu_id, '\n', 'stu_id_matedate:', stu_id_matedate)

# 实验1 赋值
# stu_id.pop(1)
# print("stu_id:",stu_id,'\n', 'stu_id_matedate:', stu_id_matedate)

#实验2 copy
stu_id_matedate = stu_id.copy()
stu_id.pop(1)
print("stu_id:", stu_id, '\n', 'stu_id_matedate:', stu_id_matedate)

#实验3 切片实现复制
stu_id_matedate = stu_id[:]
stu_id.pop(1)
print("stu_id:", stu_id, '\n', 'stu_id_matedate:', stu_id_matedate)

